﻿using System;
using System.IO;

namespace Studio
{
	// Token: 0x0200049A RID: 1178
	public class OIBoneInfo : ObjectInfo
	{
		// Token: 0x06001D77 RID: 7543 RVA: 0x000BB160 File Offset: 0x000B9360
		public OIBoneInfo(int _key) : base(_key)
		{
			this.group = (OIBoneInfo.BoneGroup)0;
			this.level = 0;
		}

		// Token: 0x17000315 RID: 789
		// (get) Token: 0x06001D78 RID: 7544 RVA: 0x000BB178 File Offset: 0x000B9378
		public override int kind
		{
			get
			{
				return -1;
			}
		}

		// Token: 0x17000316 RID: 790
		// (get) Token: 0x06001D79 RID: 7545 RVA: 0x000BB17C File Offset: 0x000B937C
		// (set) Token: 0x06001D7A RID: 7546 RVA: 0x000BB184 File Offset: 0x000B9384
		public OIBoneInfo.BoneGroup group { get; set; }

		// Token: 0x17000317 RID: 791
		// (get) Token: 0x06001D7B RID: 7547 RVA: 0x000BB190 File Offset: 0x000B9390
		// (set) Token: 0x06001D7C RID: 7548 RVA: 0x000BB198 File Offset: 0x000B9398
		public int level { get; set; }

		// Token: 0x06001D7D RID: 7549 RVA: 0x000BB1A4 File Offset: 0x000B93A4
		public override void Save(BinaryWriter _writer, Version _version)
		{
			_writer.Write(base.dicKey);
			base.changeAmount.Save(_writer);
		}

		// Token: 0x06001D7E RID: 7550 RVA: 0x000BB1C0 File Offset: 0x000B93C0
		public override void Load(BinaryReader _reader, Version _version, bool _import, bool _tree = true)
		{
			base.Load(_reader, _version, _import, false);
		}

		// Token: 0x06001D7F RID: 7551 RVA: 0x000BB1CC File Offset: 0x000B93CC
		public override void DeleteKey()
		{
			Studio.DeleteIndex(base.dicKey);
		}

		// Token: 0x0200049B RID: 1179
		public enum BoneGroup
		{
			// Token: 0x04001FCC RID: 8140
			Body = 1,
			// Token: 0x04001FCD RID: 8141
			RightLeg,
			// Token: 0x04001FCE RID: 8142
			LeftLeg = 4,
			// Token: 0x04001FCF RID: 8143
			RightArm = 8,
			// Token: 0x04001FD0 RID: 8144
			LeftArm = 16,
			// Token: 0x04001FD1 RID: 8145
			RightHand = 32,
			// Token: 0x04001FD2 RID: 8146
			LeftHand = 64,
			// Token: 0x04001FD3 RID: 8147
			Hair = 128,
			// Token: 0x04001FD4 RID: 8148
			Neck = 256,
			// Token: 0x04001FD5 RID: 8149
			Breast = 512,
			// Token: 0x04001FD6 RID: 8150
			Skirt = 1024
		}
	}
}
